package com.lancoo.rxretrofitlibrary.http.parser;

import com.lancoo.rxretrofitlibrary.http.RetrofitUrlManager;

import okhttp3.HttpUrl;

/**
 * Created by tangminglong on 17/8/4.
 */

public interface UrlParser {

    /**
     * 将{@link RetrofitUrlManager#mDomainNameHub}中映射的Url解析成完整的{@link HttpUrl}
     * 用来替换{@link okhttp3.Request#url}达到动态切换Url
     * @param domain
     * @param url
     * @return
     */
    HttpUrl parseUrl(HttpUrl domain, HttpUrl url);

}
